﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2.Event
{
    /// <summary>
    /// 2. 定义具体的事件类
    /// 然后，我们定义具体的邮件推送事件类，继承自IntegrationEvent。
    /// </summary>
    public class DoSomethingEvent : IntegrationEvent
    {
        public string EmailSubject { get; set; }
        public string EmailBody { get; set; }
        public string Receiver { get; set; }
        public DoSomethingEvent(string subject, string body, string receiver)
        {
            EmailSubject = subject;
            EmailBody = body;
            Receiver = receiver;
        }
    }
}
